package org.ruanjj.multithread;

import java.util.concurrent.Callable;

public class mainThread {
    public static void main(String[] args) {
        EvenThread evenTread = new EvenThread();
        evenTread.start();

        /*OddThread oddThread = new OddThread();
        oddThread.start();*/

        for(int i = 0; i<100; i++){
            System.out.println(Thread.currentThread().getName()+"输出当前数字："+i);

            if(i % 10 == 0){
                Thread.yield();
            }
        }
    }
}
